﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HY.WEB.OA
{
    public partial class msg_view : PageBase
    {

        public string sid = "";
        public string us;
        protected void Page_Load(object sender, EventArgs e)
        {
            us = Session["ID"].ToString();
            if (!String.IsNullOrEmpty(Request["sid"]))
            {
                sid = Request["sid"].Trim();
            }

            Fill();

        }

        void Fill()
        {

            DataTable dt = BLL.msg.msgbase.get_list(sid);
            if (dt.Rows.Count > 0)
            {
                lbltitle.Text = dt.Rows[0]["title"].ToString().Trim();
                lblmemo.Text =BLL.BllHtml.LostHTML( HttpUtility.HtmlDecode(dt.Rows[0]["contont"].ToString().Trim()));
                lblother.Text = dt.Rows[0]["dtime"].ToString().Trim()+"  发件人："+
                     dt.Rows[0]["sendnm"].ToString().Trim()+"  收件人："+
                        dt.Rows[0]["outnm"].ToString().Trim();
            
            }
        
        }

      
    }
}